<?php /* Smarty version 2.6.18, created on 2011-11-17 11:11:13
         compiled from bao_tri_deptlist.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array('title' => 'Bao tri deptlist ')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<form name ="tongquat" action="" method="post" target="_self">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td colspan="2"><input name="button" type="button" class="button_style" onclick="history.back();" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" value="<?php echo $this->_tpl_vars['ten_trove']; ?>
" /></td>
      <td align="right" nowrap="nowrap" colspan="2"><select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
        
   <?php $_from = $this->_tpl_vars['chuyentrang']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
      
        <option value="<?php echo $this->_tpl_vars['k']; ?>
" <?php if ($this->_tpl_vars['select_cbo_chuyentrang'] == $this->_tpl_vars['k']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['v']; ?>
</option>
        
 	<?php endforeach; endif; unset($_from); ?>

      </select>
          <input name="action" type="submit" value="<?php echo $this->_tpl_vars['ten_thuc_hien']; ?>
" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'"/></td>
    </tr>
    <tr>
      <td colspan="4"><hr /></td>
    </tr>
    <tr>
      <td nowrap="nowrap" width="25%"><?php echo $this->_tpl_vars['lbl_BRNCODE']; ?>
</td>
      <td colspan="3" align="left"><select name="BRNCODE" id="BRNCODE" <?php if ($this->_tpl_vars['activefield'] == 'enabled'): ?> disabled="disabled" <?php endif; ?>>
        
		 <?php $_from = $this->_tpl_vars['BRNCODE']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
	  	
        <option value="<?php echo $this->_tpl_vars['k']; ?>
" <?php if ($this->_tpl_vars['k'] == $this->_tpl_vars['activebrncode']): ?> selected="selected" <?php endif; ?> ><?php echo $this->_tpl_vars['v']; ?>
</option>
        
	  <?php endforeach; endif; unset($_from); ?>
    
      </select>
          <input type="hidden" name="BRNCODEhidden" id="BRNCODEhidden" value="<?php echo $this->_tpl_vars['activeBRNCODE']; ?>
" />      </td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_DEPTCD']; ?>
</td>
      <td><span style="color:#FF0000">
        <input name="DEPTCD" id="DEPTCD" type="text" style="background:<?php echo $this->_tpl_vars['colorDEPTCD']; ?>
" value="<?php echo $this->_tpl_vars['DEPTCD']; ?>
" size="20" maxlength="2" <?php if ($this->_tpl_vars['activefield'] == 'enabled'): ?> readonly="readOnly"<?php endif; ?>/>
        *
        <input type="submit" id="replacement_find" name="find" value="    " <?php if ($this->_tpl_vars['activefield'] == 'enabled'): ?> disabled="disabled" <?php endif; ?>/>
      </span></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_DEPTNAME']; ?>
</td>
      <td colspan="2"><span style="color:#FF0000">
        <input name="DEPTNAME" id="DEPTNAME" type="text" style="background:<?php echo $this->_tpl_vars['colorDEPTNAME']; ?>
" value="<?php echo $this->_tpl_vars['DEPTNAME']; ?>
" size="50" maxlength="50" />
        *</span></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_REMARKS']; ?>
</td>
      <td colspan="2"><input name="REMARKS" id="REMARKS" type="text" style="background:<?php echo $this->_tpl_vars['colorREMARKS']; ?>
" value="<?php echo $this->_tpl_vars['REMARKS']; ?>
" size="50" maxlength="50" /></td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_MANAGER_CODE']; ?>
</td>
      <td><input name="MANAGER_CODE" id="MANAGER_CODE" type="text" style="background:<?php echo $this->_tpl_vars['colorMANAGER_CODE']; ?>
" value="<?php echo $this->_tpl_vars['MANAGER_CODE']; ?>
" size="20" maxlength="10" />
        <input type="button" onclick="mywindow = window.open('master_id.php?name=MANAGER_CODE-MANAGER_NAME', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat3" id="replacement_binoculars" value="     " />
        <input name="MANAGER_NAME" id="MANAGER_NAME" type="text" style="background:<?php echo $this->_tpl_vars['colorMANAGER_NAME']; ?>
" value="<?php echo $this->_tpl_vars['MANAGER_NAME']; ?>
" size="31" maxlength="50" readonly="readonly" /></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_OPENDATE']; ?>
</td>
      <td><span style="color:#FF0000">
        <input name="OPENDATE" type="text" id="OPENDATE" style="background:<?php echo $this->_tpl_vars['colorOPENDATE']; ?>
" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" value="<?php echo $this->_tpl_vars['OPENDATE']; ?>
" size="25" />
      </span></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_LICENC']; ?>
</td>
      <td><input name="LICENCE" id="LICENCE" type="hidden" style="background:<?php echo $this->_tpl_vars['colorLICENCE']; ?>
" value="<?php echo $this->_tpl_vars['LICENCE']; ?>
" size="50" maxlength="50" /></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_VCSEQNO']; ?>
</td>
      <td><input name="VCSEQNO" id="VCSEQNO" type="text" style="background:<?php echo $this->_tpl_vars['colorVCSEQNO']; ?>
" value="<?php echo $this->_tpl_vars['VCSEQNO']; ?>
" size="20" maxlength="7" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" class="textright"/></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_COSTID']; ?>
</td>
      <td><input name="COSTID" id="COSTID" type="text" style="background:<?php echo $this->_tpl_vars['colorCOSTID']; ?>
" value="<?php echo $this->_tpl_vars['COSTID']; ?>
" size="20" maxlength="10" />
          <input type="button" onclick="mywindow = window.open('costid_id.php?name=COSTID', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findcostid" id="replacement_binoculars" value="     " /></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_ENABLED']; ?>
</td>
      <td><select name="ENABLED">
          <option value=""></option>
        
      
		 <?php $_from = $this->_tpl_vars['ENABLED']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?> 	 
      
      
        <option value="<?php echo $this->_tpl_vars['k']; ?>
" <?php if ($this->_tpl_vars['k'] == $this->_tpl_vars['activeENABLED']): ?> selected="selected" <?php endif; ?> ><?php echo $this->_tpl_vars['k']; ?>
 - <?php echo $this->_tpl_vars['v']; ?>
</option>
        
      
	  <?php endforeach; endif; unset($_from); ?> 
    
    
      </select></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_DEPCRD']; ?>
</td>
      <td><input name="DEPCRD" id="DEPCRD" type="text" style="background:<?php echo $this->_tpl_vars['colorDEPCRD']; ?>
" value="<?php echo $this->_tpl_vars['DEPCRD']; ?>
" size="20" maxlength="10" onkeyup="this.value=this.value.toUpperCase().replace(' ','')" /></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_SUBBRNCODE']; ?>
</td>
      <td><input name="SUBBRNCODE" id="SUBBRNCODE" type="text" style="background:<?php echo $this->_tpl_vars['colorSUBBRNCODE']; ?>
" value="<?php echo $this->_tpl_vars['SUBBRNCODE']; ?>
" size="20" maxlength="2" onkeyup="this.value=this.value.toUpperCase().replace(' ','')" /></td>
      <td><?php echo $this->_tpl_vars['lbl_TCD']; ?>
</td>
      <td nowrap="nowrap"><select name="TCD" id="TCD">
          <option value=""></option>
              
		 <?php $_from = $this->_tpl_vars['cbo_TCD']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>      
      
        <option value="<?php echo $this->_tpl_vars['k']; ?>
" <?php if ($this->_tpl_vars['k'] == $this->_tpl_vars['TCD']): ?> selected="selected" <?php endif; ?> ><?php echo $this->_tpl_vars['k']; ?>
 - <?php echo $this->_tpl_vars['v']; ?>
</option>
              
	  <?php endforeach; endif; unset($_from); ?>    
    
      </select></td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_CTRID']; ?>
</td>
      <td><input name="CTRID" id="CTRID" type="text" style="background:<?php echo $this->_tpl_vars['colorCTRID']; ?>
" value="<?php echo $this->_tpl_vars['CTRID']; ?>
" size="20" maxlength="3"  onkeyup="this.value=this.value.toUpperCase().replace(' ','')" /></td>
      <td><?php echo $this->_tpl_vars['lbl_STATUS']; ?>
</td>
      <td nowrap="nowrap"><select name="STATUS" id="STATUS">
          <option value=""></option>
        
      
		 <?php $_from = $this->_tpl_vars['cbo_STATUS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?> 	 
      
      
        <option value="<?php echo $this->_tpl_vars['v']; ?>
" <?php if ($this->_tpl_vars['v'] == $this->_tpl_vars['STATUS']): ?> selected="selected" <?php endif; ?> ><?php echo $this->_tpl_vars['v']; ?>
</option>
        
      
	  <?php endforeach; endif; unset($_from); ?> 
    
    
      </select></td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_ADDRESS']; ?>
</td>
      <td><input name="ADDRESS" id="ADDRESS" type="text" style="background:<?php echo $this->_tpl_vars['colorADDRESS']; ?>
" value="<?php echo $this->_tpl_vars['ADDRESS']; ?>
" size="50" maxlength="50" /></td>
      <td><?php echo $this->_tpl_vars['lbl_STATUSVO']; ?>
</td>
      <td nowrap="nowrap"><select name="STATUSVO" id="STATUSVO" disabled="disabled">
        
      
     <?php $_from = $this->_tpl_vars['cbo_STATUSVO']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?> 	 
     
      
        <option value="<?php echo $this->_tpl_vars['v']; ?>
" <?php if ($this->_tpl_vars['v'] == $this->_tpl_vars['STATUSVO']): ?> selected="selected" <?php endif; ?> ><?php echo $this->_tpl_vars['v']; ?>
</option>
        
      
     <?php endforeach; endif; unset($_from); ?> 

    
      </select>      </td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_PHONE']; ?>
</td>
      <td><input name="PHONE" type="text" id="PHONE" style="text-align:left;" onkeypress="return numberOnly(event);" value="<?php echo $this->_tpl_vars['PHONE']; ?>
" size="20" maxlength="50"/></td>
	  <td><?php echo $this->_tpl_vars['lbl_FAX']; ?>
</td>
	  <td><input name="FAX" id="FAX" type="text" style="background:<?php echo $this->_tpl_vars['colorFAX']; ?>
" value="<?php echo $this->_tpl_vars['FAX']; ?>
" size="20" maxlength="50" onkeypress="return numberOnly(event);" /></td>
    </tr>
    <tr>
      <td><?php echo $this->_tpl_vars['lbl_CSHACT']; ?>
</td>
      <td><input name="CSHACT" id="CSHACT" type="text" style="background:<?php echo $this->_tpl_vars['colorCSHACT']; ?>
" value="<?php echo $this->_tpl_vars['CSHACT']; ?>
" size="20" maxlength="10" />
        <span style="color:#FF0000">*</span>
        <input type="button" onclick="mywindow = window.open('microbank_id.php?name=CSHACT', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat2" id="replacement_binoculars" value="     " /></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_CSHACT_X']; ?>
</td>
      <td><input name="CSHACT_X" type="text" id="CSHACT_X" style="text-align:right;" value="<?php echo $this->_tpl_vars['CSHACT_X']; ?>
" size="20" maxlength="10" /></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td nowrap="nowrap"><?php echo $this->_tpl_vars['lbl_CSHACT_Z']; ?>
</td>
      <td><input name="CSHACT_Z" type="text" id="CSHACT_Z" style="text-align:right;" value="<?php echo $this->_tpl_vars['CSHACT_Z']; ?>
" size="20" maxlength="10" /></td>
      <td>&nbsp;</td>
      <td nowrap="nowrap">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="4"><p>&nbsp;</p>
          <p>&nbsp;</p></td>
    </tr>
    <tr>
      <td colspan="4" align="right" nowrap="nowrap"><input type="button" name="cancle" id="cancle" value="<?php echo $this->_tpl_vars['ten_cancle']; ?>
" class="button_style" onclick="activeform(this.form,'DEPTCD-BRNCODE');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
          <input type="submit" name="capnhat" value="<?php echo $this->_tpl_vars['ten_cap_nhat']; ?>
" <?php if ($this->_tpl_vars['activefield'] == 'disabled'): ?>disabled="disabled" <?php endif; ?> class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
    </tr>
    <tr>
      <td colspan="4" align="left" nowrap="nowrap"><input name="addnew" type="submit" value="<?php echo $this->_tpl_vars['ten_themmoi']; ?>
" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
          <input name="detail" type="submit" value="<?php echo $this->_tpl_vars['ten_chitiet']; ?>
" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
    </tr>
    <tr>
      <td colspan="4"><hr /></td>
    </tr>
    <tr>
      <td colspan="2"><input name="button2" type="button" class="button_style" onclick="history.back();" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" value="<?php echo $this->_tpl_vars['ten_trove']; ?>
" /></td>
      <td align="right" nowrap="nowrap" colspan="2"><select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
        
   <?php $_from = $this->_tpl_vars['chuyentrang']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
      
        <option value="<?php echo $this->_tpl_vars['k']; ?>
" <?php if ($this->_tpl_vars['select_cbo_chuyentrang'] == $this->_tpl_vars['k']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['v']; ?>
</option>
        
 	<?php endforeach; endif; unset($_from); ?>

      </select>
          <input name="action" type="submit" value="<?php echo $this->_tpl_vars['ten_thuc_hien']; ?>
" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
    </tr>
  </table>
</form>
<?php echo $this->_tpl_vars['javascriptsetstyle']; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>